#include <stdio.h>

#define RAND_MAX 5

unsigned long _Randseed = 1;

void srandom(unsigned int seed) {
    _Randseed = seed;
}

int random(void) {
    _Randseed = _Randseed * 1103515245 + 12345;

    return ((unsigned int)(_Randseed >> 16) & RAND_MAX);
}

int main()
{
    int a;
    a = 
    printf("a = %d\n", a);

}
